<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>layui后台管理</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-status-bar-style" content="black"> 
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">  
<link rel="stylesheet" href="/Public/admin/layui/css/layui.css"  media="all">
<link rel="stylesheet" href="/Public/admin/css/global.css">
<script type="text/javascript" src="/Public/admin/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="/Public/admin/layer/layer.js"></script>
<script type="text/javascript" src="/Public/admin/layui/layui.js"></script>









</head>
<body class="layui-layout-body" style="width:98%; margin:0px auto;">
<blockquote class="layui-elem-quote" style="margin-top:10px;">
	<div class="layui-inline">
		<a class="layui-btn layui-btn-small newsAdd_btn">添加文章</a>
	</div>
	<div class="layui-inline">
		<a class="layui-btn layui-btn-small recommend" style="background-color:#5FB878">推荐文章</a>
	</div>
	<div class="layui-inline">
		<a class="layui-btn layui-btn-small audit_btn">审核文章</a>
	</div>
	<div class="layui-inline">
		<a class="layui-btn layui-btn-small layui-btn-danger batchDel">批量删除</a>
	</div>
</blockquote>
<div class="layui-form news_list">
	<table class="layui-table">
		<colgroup>
			<col width="30">
			<col>
			<col width="150">
			<col width="180">
		</colgroup>
		<thead>
			<tr>
				<th>ID</th>
				<th style="text-align:left;">文章标题</th>
				<th>时间</th> 
				<th>操作</th>
			</tr>
		</thead>
		<tbody class="news_content">
		<?php if(is_array($articlelist)): foreach($articlelist as $key=>$v): ?><tr>
			<td><?php echo ($v["id"]); ?></td>
			<td align="left"><?php echo ($v["title"]); ?></td>
			<td>2018-02-03</td>			 
			<td>
				<a href="<?php echo U('index/editArticle',array('id'=>$v['id']));?>" class="layui-btn layui-btn-mini news_edit">编辑</a>
				<a href="/index.php/Index/details/id/<?php echo ($v['id']); ?>" target="_blank" class="layui-btn layui-btn-normal layui-btn-mini news_collect">预览</a>
				<a class="layui-btn layui-btn-danger layui-btn-mini news_del" data-id="1">删除</a>
			</td>
		</tr><?php endforeach; endif; ?>
		</tbody>
	</table>
</div>
</body>
</html>